<?php
/**
 * 全局默认配置文件
 */

return array(
    'business' => array(
        'default_title'       => '抚州人力网',
        'default_keywords'    => '抚州,工作,招聘,人才,网络招聘,简历,工作,找工作,求职,面试,应聘,跳槽,高薪,兼职,猎头,薪酬,薪资,培训,测评,人事,实习',
        'default_description' => '抚州人力为求职者提供职位搜索,简历管理,职位定制,人才评测,培训信息等.为企业提供一站式专业人力资源服务,包括网络招聘,报纸招聘,校园招聘,猎头服务,招聘外包,企业培训以及人才测评等.',
        'default_author'      => '杨志兵',
    ),
    'technique' => array(
        'www_domain'          => 'www.fzrl.net',
        'module_domains'      => array(
			'admin' => 'admin.fzrl.net',
			'my' => 'my.fzrl.net',
			'sou' => 'sou.fzrl.net',
			'student' => 'student.fzrl.net',
		),
        'rewrite_enabled'     => true,
        'media_domain'        => '',
        'style_domain'        => '',
        'script_domain'       => '',
        'third_domain'        => '',
        'upload_domain'       => '',
        'static_version'      => 5,
        'page_skeleton'       => 'html5',
        'send_tpl_with_cjs'   => true,
        'secret_key'          => 'this is www.fzrl.net secret key',
        'site_closed'         => false,
        'default_https'       => false,
        'is_debug'            => false,
        'error_reporting'     => E_ALL | E_STRICT,
        'display_errors'      => false,
        'log_errors'          => true,
        'log_rotate_method'   => 'day',
        'log_execute_time'    => true,
        'send_x_powered_by'   => false,
        'minify_cjs'          => true,
        'cache_cjs_in_client' => true,
        'cache_cjs_in_server' => true,
        'locale'              => 'zh_cn',
        'time_zone'           => 'Asia/Shanghai',
        'csrf_key'            => 'role_secret',
        'version_key'         => 'v',
        'target_key'          => 'target',
        'global_filters' => array(
            'before' => array(
				'module_filter' => array(
					'admin' => array(
						'skeleton'    => 'html4',
						'title'       => '抚州人力资源网后台管理中心',
					),
					'my' => array(
						'skeleton'    => 'xhtml',
						'title'       => '用户登录_简历中心_抚州人力资源网',
					),
					'sou' => array(
						'skeleton'    => 'html5',
						'title'       => '职位搜索_求职首页_抚州人力资源网',
					),
					'student' => array(
						'skeleton'    => 'html5',
						'title'       => '校园招聘_求职首页_抚州人力资源网',
					),
				),
			),
            'after'  => array(),
        ),
        'uri_maps' => array(
            '/'      => 'site/index',
            '/about' => 'site/about',
        ),
        'visitor' => array(
            'cookie_domain' => 'fzrl.net',
            'roles' => array(
                'user' => array(
                    'sid_name'              => 'user_sid',
                    'default_alive_seconds' => 3600,
					'session_dsn'           => 'memcached://127.0.0.1:11211',
                    'trace_last_active'     => true,
                    // 'session_dsn'        => array('memcached://ip1:port1', 'memcached://ip2:port2'),
                    // 'session_dsn'        => 'mysql://user:pass@ip:port/db_name/table_name',
                ),
                'admin' => array(
                    'sid_name'              => 'admin_sid',
                    'default_alive_seconds' => 3600,
                    'trace_last_active'     => true,
					'session_dsn'           => 'memcached://127.0.0.1:11211',
                ),
				'guest' => array(
					'sid_name'              => 'guest_sid',
					'default_alive_seconds' => 600,
					'trace_last_active'     => true,
					'session_dsn'           => 'memcached://127.0.0.1:11211',
				),
            ),
        ),
        'repo' => array(
            'rdb' => array(
                'type' => 'distributed',
                'sources' => array(
                    'default' => array(
                        'master' => 'mysql://yangzhibing:hinson_0932@127.0.0.1:3306/fzhz',
                        'slaves' => array(
							
						),
                    ),
                ),
                'tables' => array(
                    '*' => 'default',
                ),
            ),
        ),
        'cache' => array(
            'captcha' => array(
                'memcached://127.0.0.1:11211',
            ),
            'demo2' => array(
                'redis://ip3:port3',
                'redis://ip4:port4',
            ),
        ),
        'mailer' => array(),
        'mover' => array(
            'demo' => 'filesys://' . swap\web_dir . '/upload/demo',
        ),
        'queue' => array(),
        'search' => array(),
		'captcha' => array(
			'noise_level' => 1,
		),
    ),
    'third' => array(),
);
